package org.xc.uvc_camera.net.api

import io.reactivex.Observable
import okhttp3.ResponseBody
import org.xc.uvc_camera.net.AppVersion
import org.xc.uvc_camera.net.QiNiuToken
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface Other {

    @FormUrlEncoded
    @POST("getQiNiuToken")
    fun getQiNiuToken(@Field("carNum") carNum: String): Observable<QiNiuToken>

    @FormUrlEncoded
    @POST("videosUpload")
    fun videosUpload(@Field("videoUrl") videoUrl: String,@Field("carNum") carNum: String): Observable<ResponseBody>

    @FormUrlEncoded
    @POST("appversion")
    fun checkVersion(@Field("appType ") appType: String): Observable<AppVersion>

    @FormUrlEncoded
    @POST("online")
    fun online(@Field("carNum") carNum: String): Observable<ResponseBody>
}